/**
 *  @file: hw_imp.c
 *  @author: nwz
 *  @brief: 
 *  @date: 2024年8月8日
 * 
 */

#include <basic_header.h>
#include "ui.h"
#include "screen/ui_HomePage.h"

void HW_RTC_Get_TimeDate(HW_DateTimeTypeDef * nowdatetime)
{

}
void HW_RTC_Set_Date(uint8_t year, uint8_t month, uint8_t date){

}
void HW_RTC_Set_Time(uint8_t hours, uint8_t minutes, uint8_t seconds){

}
uint8_t HW_weekday_calculate(uint8_t setyear, uint8_t setmonth, uint8_t setday, uint8_t century){
	return 0;
}
//IMU
uint8_t HW_MPU_Wrist_is_Enabled(void){

}
void HW_MPU_Wrist_Enable(void){

}
void HW_MPU_Wrist_Disable(void){

}
//BLE
void HW_BLE_Enable(void){

}
void HW_BLE_Disable(void){

}
//POW
void HW_Power_Shutdown(void){

}
//LCD
void HW_LCD_Set_Light(uint8_t dc){

}



void ui_homepage_update_time(void){
	uint8_t value[20];
	static uint8_t hour = 10;
	hour = (hour+1)%24;

	if (ui_TimeHourValue != hour){
		ui_TimeHourValue = hour;
		snprintf(value,sizeof(value),"%d",hour);
		lv_label_set_text(ui_TimeHourLabel, value);
	}

	int minute = hour + 12;
	if (ui_TimeMinuteValue != minute){
		ui_TimeMinuteValue = minute;
		snprintf(value,sizeof(value),"%d",minute);
		lv_label_set_text(ui_TimeMinuteLabel,value);
	}
}
